package net.skyaims.sqlmgr.domain;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;

import lombok.Data;

/**
 * 
 * <p>
 * 
 * <br>
 * 2014年1月15日 下午7:50:59
 * </p>
 * 
 * @author <a href="mailto:wujianing@cyou-inc.com">wujianing</a>
 */
@Data
public class IdcServer implements ResultSetMapper<IdcServer> {

	private Integer seqid;
	private String uuid;

	private Integer id;
	private Integer idcId;
	private String ip;
	private Integer statu = 1;
	private Integer checked = 0;
	private Integer sid;
	private Integer isRtmp = 0;

	// Transient---------------------------->>>
	private String idcName;
	private String strStatu;
	private String strIsRtmp;
	private Long updateTime;

	@Override
	public IdcServer map(int index, ResultSet r, StatementContext ctx) throws SQLException {
		IdcServer idcServer = new IdcServer();
		idcServer.setSeqid(r.getInt("seqid"));
		idcServer.setSid(r.getInt("sid"));
		idcServer.setUuid(r.getString("uuid"));
		return idcServer;
	}
}
